'''
Created on 2019年8月23日
@author: sida
'''
import node_wordsMatrixOfBertSimilarity as node_wmb

node_csvFile2Obj = node_wmb.node_csvFile2Obj
info2MatrixByBert = node_wmb.info2MatrixByBert
node_computeF = node_wmb.node_computeF
node_computeOSD = node_wmb.node_computeOSD
node_inference_work = node_wmb.node_inference_work
node_inference_OSD = node_wmb.node_inference_OSD

node_index2Sentences = node_wmb.node_index2Sentences
node_sentences2MatrixByBert = node_wmb.node_sentences2MatrixByBert
node_computeF_sentences = node_wmb.node_computeF_sentences
node_computeOSD_sentences = node_wmb.node_computeOSD_sentences
node_inference_sentences = node_wmb.node_inference_sentences

#分词后的公司信息句子--》从bert得到句子中各个标签的句向量（标签看做短语句子），从而公司信息对应到矩阵--》计算cos值，大的相似-选inference_work topN大
node_sentences2MatrixByBert_tokens = node_wmb.node_sentences2MatrixByBert_tokens
node_computeF_sentences2MatrixByBert_tokens = node_wmb.node_computeF_sentences2MatrixByBert_tokens
node_inference_cos = node_wmb.node_inference_cos

node_index2Info = node_wmb.node_index2Info
node_texts2transferMatrix = node_wmb.node_texts2transferMatrix
node_transferMatrixMeanSimilarity = node_wmb.node_transferMatrixMeanSimilarity

if __name__ == '__main__':
    compulsory_Update_Nodes = [ node_inference_cos  ]
    NoForce_Update_Nodes = [  ]
    wanted_Nodes = NoForce_Update_Nodes + compulsory_Update_Nodes
    for node in compulsory_Update_Nodes:
        node.forceUpdate=True
    [print(type(node.getData())) for node in wanted_Nodes]
#     M = node_sentences2MatrixByBert_tokens.getData()
#     print(M[2][2])
    
    
    
    
